/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 拼团优惠券Entity
 * @author 李欣荣
 * @version 2018-09-28
 */
public class HkShopCollageCoupon extends DataEntity<HkShopCollageCoupon> {
	
	private static final long serialVersionUID = 1L;
	private String burstId;		// 爆款id
	private HkShopCoupon coupon;		// 优惠券id
	private String productId;		// 商品id
	private Date beginTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String state;		// 状态
	private String integral;		// 乐币
	private String activityStocks;		// 活动库存
	private String lastStocks;		// 剩余库存
	private String boughtStocks;		// 已买库存
	private String num;		// 开团人数
	private String discount;		// 折扣
	
	public HkShopCollageCoupon() {
		super();
	}

	public HkShopCollageCoupon(String id){
		super(id);
	}

	@Length(min=0, max=32, message="爆款id长度必须介于 0 和 32 之间")
	public String getBurstId() {
		return burstId;
	}

	public void setBurstId(String burstId) {
		this.burstId = burstId;
	}
	
	public HkShopCoupon getCoupon() {
		return coupon;
	}

	public void setCoupon(HkShopCoupon coupon) {
		this.coupon = coupon;
	}
	
	@Length(min=0, max=100, message="商品id长度必须介于 0 和 100 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=11, message="乐币长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@Length(min=0, max=11, message="活动库存长度必须介于 0 和 11 之间")
	public String getActivityStocks() {
		return activityStocks;
	}

	public void setActivityStocks(String activityStocks) {
		this.activityStocks = activityStocks;
	}
	
	@Length(min=0, max=11, message="剩余库存长度必须介于 0 和 11 之间")
	public String getLastStocks() {
		return lastStocks;
	}

	public void setLastStocks(String lastStocks) {
		this.lastStocks = lastStocks;
	}
	
	@Length(min=0, max=11, message="已买库存长度必须介于 0 和 11 之间")
	public String getBoughtStocks() {
		return boughtStocks;
	}

	public void setBoughtStocks(String boughtStocks) {
		this.boughtStocks = boughtStocks;
	}
	
	@Length(min=0, max=11, message="开团人数长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}
	
}